package org.example.cicdi.service.impl.third;

public enum EnumJavaAttributeToPageMapping {
    HasColumn(1, "hascolumn"),
    NoColumn(2, "nocolumn"),
    HasManyToOne(3,"hasmanytoone"),
    NoManyToOne(4,"nomanytoone"),
    HasJoinColumn(5,"hasjoincolumn"),
    NoJoinColumn(6,"nojoincolumn"),
    ;

    int code;
    String status;

    EnumJavaAttributeToPageMapping(int code, String status) {
        this.code = code;
        this.status = status;
    }

   /* *//*
    * 这个方法需要更换一下，对date，。77    不会h 及datetime 2个出现会混淆.目前是统一处理，暂时不用变化，因为这2个最后取的currentFrameWorkNeededDbType，都是一样的。
    * 框架中用到的currentFrameWorkNeededDbType，是第一个字母大写
    * *//*
    public static EnumTableMappingConditionType getBycolumnDefinition(String columnDefinition) {
        for (EnumTableMappingConditionType en : EnumTableMappingConditionType.values()) {
            *//*if (StringUtils.equals(en.getDbname(), dbname)) {
                return en;
            }*//*
            if(columnDefinition.contains(en.getDbname())){
                return en;
            }
        }

        return null;
    }
    public static EnumTableMappingConditionType getByDbJavaTypeName(String javatypesimplename) {
        for (EnumTableMappingConditionType en : EnumTableMappingConditionType.values()) {
            *//*if (StringUtils.equals(en.getDbname(), dbname)) {
                return en;
            }*//*
            if(javatypesimplename.contains(en.getJavatypesimplename())){
                return en;
            }
        }

        return null;
    }*/

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }



    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
